home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Networking / PPCToolboxKeychain / Create and Bless Keys next >
Encoding:
Text File  |  2000-10-06  |  725 b   |  12 lines  |  [TEXT/ToyS]

  1. tell application "Keychain Scripting"
  2.     make new generic key at current keychain with properties ¬
  3.         {name:"Guy Smiley", account:"Quinn", description:"Program Linking password", creator code:"ppcx", file type:"genp", password:"••••••••", service:"Guy Smiley"}
  4. end tell
  5. bless program linking key name "Guy Smiley" address "eppc:/at/Guy Smiley:*"
  6.  
  7. tell application "Keychain Scripting"
  8.     make new generic key at current keychain with properties ¬
  9.         {name:"guy-smiley.apple.com", account:"Quinn", description:"Program Linking password", creator code:"ppcx", file type:"genp", password:"••••••••", service:"guy-smiley.apple.com"}
  10. end tell
  11. bless program linking key name "guy-smiley.apple.com" address "eppc://guy-smiley.apple.com"
  12.